package club.dataresources.mapper;

import club.dataresources.bo.BarberWorkTimeBo;
import club.dataresources.entity.BarberWorkTime;
import club.dataresources.entity.BarberWorkTimeExample;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BarberWorkTimeMapper {
    long countByExample(BarberWorkTimeExample example);

    int deleteByExample(BarberWorkTimeExample example);

    int deleteByPrimaryKey(Integer barberId);

    int insert(BarberWorkTime record);

    int insertSelective(BarberWorkTime record);

    Page<BarberWorkTime> selectByExample(BarberWorkTimeExample example);

    BarberWorkTime selectByPrimaryKey(Integer barberId);

    int updateByExampleSelective(@Param("record") BarberWorkTime record, @Param("example") BarberWorkTimeExample example);

    int updateByExample(@Param("record") BarberWorkTime record, @Param("example") BarberWorkTimeExample example);

    int updateByPrimaryKeySelective(BarberWorkTime record);

    int updateByPrimaryKey(BarberWorkTime record);

    List<BarberWorkTimeBo> getAllBarberWorkerTime();
}